<%@ page import="controller.DBmanager, model.SignDao, model.BidDAO, model.BidBean, model.AuctionDAO, model.AuctionBean, java.util.ArrayList;"%>
<table class="main" style="width: 100%;">
	<tr>
		<td class="main" colspan="2"><h3>Prices</h3></td>
	</tr>
	<%
		AuctionBean bean = new AuctionDAO().getAuction(new Integer(request.getParameter("id")));
		ArrayList<BidBean> bidbeans = new BidDAO().selectBids(bean.getID()); 
		for(BidBean bidbean: bidbeans){
	%>
	<tr>
		<td class="main"><%= new SignDao().getUsername(bidbean.getBidder()) %></td>
		<td class="main">&euro;<%= bidbean.getBid() %></td>
		<td class="main"><%= bidbean.getBdate() %></td>
	</tr>
	<%
		}
	%>
	<tr>
		<td class="main">startprice</td>
		<td class="main">&euro;<%= bean.getPrice() %></td>
	</tr>
</table>